package com.lydms.dao;

import com.lydms.pojo.Page;
import com.lydms.pojo.PageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PageDao {
    int countByExample(PageQuery example);

    int deleteByExample(PageQuery example);

    int insert(Page record);

    int insertSelective(Page record);

    List<Page> selectByExample(PageQuery example);

    int updateByExampleSelective(@Param("record") Page record, @Param("example") PageQuery example);

    int updateByExample(@Param("record") Page record, @Param("example") PageQuery example);

    Page selectByName(@Param("name") String name);

}